package com.calvin.study.reflect;

import com.calvin.study.reflect.model.Cat;

public class ReflectDemo2 {

	public static void main(String[] args) {
		try {
			Cat c = new Cat();
			System.out.println(c.getClass());

			Class cls = Class.forName("spring.framework.study.reflect.model.Cat");
			System.out.println(cls.hashCode());
			Class cls2 = Class.forName("spring.framework.study.reflect.model.Cat");
			System.out.println(cls2.hashCode());
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
